package com.unnison.demo.client.microevents;

import com.google.inject.Inject;

import com.unnison.demo.client.alerter.Alerter;
import com.unnison.demo.client.main.MainPresenter;
import com.unnison.demo.client.microevents.MicroeventsPresenter;
import com.unnison.demo.client.microevents.MicroeventsPresenter.MicroeventsBinder;
import com.unnison.framework.junit.GuitTest;

import org.junit.Before;
import org.junit.Test;

public class TestMicroeventsPresenter extends GuitTest {

    @Inject
    MicroeventsPresenter presenter;

    @Override
    protected void configure() {
        mock(MicroeventsBinder.class);
        mock(MainPresenter.class);
        mock(Alerter.class);
    }

    @Before
    public void setUp() {
        presenter.go(null);
    }

    @Test
    public void testPanelClick() {
        presenter.panel$click("guit");
    }

    @Test
    public void testRender() {
        presenter.render$click();
    }
}
